package org.argeproje.resim.proc.data;

public class Data  {
	protected Object _buffer;
	public final static int IMAGE = 1;
	public final static int CONST = 2;
	public final static int CONST_1D_ARRAY = 4;
	public final static int CONST_2D_ARRAY = 8;
	public final static int COMPLEX_IMAGE = 16;
	public final static int HIST_IMAGE = 32;
	public final static int HISTOGRAM = 64;
	public final static int HISTOGRAM_MATCH = 128;
	public final static int KERNEL = 256;
	public final static int FLOAT = 512;
	public final static int DOUBLE = 1024;
	public final static int INT = 2048;
	public final static int EXTREMA = 4096;
	
	protected int _dataType;
	public void setDataType(int dataType){
		_dataType = dataType;
	}
	public void addDataType(int dataType){
		_dataType = _dataType | dataType;
	}
	public int getDataType(){
		return _dataType;
	}
	public boolean isOfType(int type){
		boolean result = false;
		if((getDataType() & type) > 0){
			result = true;
		}
		return result;
	}
	protected Data(){
		setDataType(0);
	}
	/*
	public Data(Object org.argeproje.resim.proc.data){
		setData(org.argeproje.resim.proc.data);
	}
	*/
	public void setData(Object buffer){
		_buffer = buffer;
	}
	public Object getData(){
		return _buffer;
	}


	
}
